package com.group.itms.routes.data;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable
public class ObjectMap {

	public static final String OBJECT = "object_id";
	
	@DatabaseField(id = true)
	private int id;
	@DatabaseField(foreign = true, foreignAutoRefresh = true, columnName = OBJECT)
	private BObject object;
	@DatabaseField
	private boolean isActive;
	@DatabaseField
	private String mapUrl;
	@DatabaseField(dataType = DataType.BYTE_ARRAY)
	private byte[] map;

	@DatabaseField
	private float x1;
	@DatabaseField
	private float y1;
	@DatabaseField
	private float x2;
	@DatabaseField
	private float y2;
	@DatabaseField
	private float x3;
	@DatabaseField
	private float y3;
	@DatabaseField
	private float x4;
	@DatabaseField
	private float y4;
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public BObject getObject() {
		return object;
	}

	public void setObject(BObject object) {
		this.object = object;
	}

	public boolean isActive() {
		return isActive;
	}

	public void setActive(boolean isActive) {
		this.isActive = isActive;
	}

	public String getMapUrl() {
		return mapUrl;
	}

	public void setMapUrl(String mapUrl) {
		this.mapUrl = mapUrl;
	}

	public byte[] getMap() {
		return map;
	}

	public void setMap(byte[] map) {
		this.map = map;
	}

	public float getX1() {
		return x1;
	}

	public void setX1(float x1) {
		this.x1 = x1;
	}

	public float getY1() {
		return y1;
	}

	public void setY1(float y1) {
		this.y1 = y1;
	}

	public float getX2() {
		return x2;
	}

	public void setX2(float x2) {
		this.x2 = x2;
	}

	public float getY2() {
		return y2;
	}

	public void setY2(float y2) {
		this.y2 = y2;
	}

	public float getX3() {
		return x3;
	}

	public void setX3(float x3) {
		this.x3 = x3;
	}

	public float getY3() {
		return y3;
	}

	public void setY3(float y3) {
		this.y3 = y3;
	}

	public float getX4() {
		return x4;
	}

	public void setX4(float x4) {
		this.x4 = x4;
	}

	public float getY4() {
		return y4;
	}

	public void setY4(float y4) {
		this.y4 = y4;
	}

	
	
}
